<?php $indexes=$index+1;
if(($indexes % 4)==0){
  
    echo '<div class="row">';};
?>

    <div class="col-lg-3 col-sm-6 col-md-3">
        <div class="thumbnail">
            <img src="<?php echo getRequestbaseUrl() . getuploadFolderDir() . 'skill-team/' . $data->photo; ?>" alt="...">
            <div class="caption">
                <h3><?php $memberName=explode(' ',$data->member_name) ; 
                echo $memberName[0]; 
                echo (isset($memberName[1]))?'<br style="line-height: 1.1;">'.$memberName[1]:'';
                echo (isset($memberName[2]))?'  '.$memberName[2]:'';
                ?></h3>
                <p style="min-height: 49px;"><strong><?php echo $data->member_designating; ?></strong></p>
                <p><?php echo $data->about_member; ?></p>
            </div>
        </div>
    </div>

<?php if(($indexes % 4)==0){echo'<div class="gap"></div></div>';};

